package org.zhengquan.dto;

import com.google.common.collect.Lists;
import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.BeanUtils;
import org.zhengquan.pojo.SysAclModule;

import java.util.List;

/**
 * @author zhengquan
 * @date 2017/11/2
 */
@Getter
@Setter
public class AclModuleLevelDto extends SysAclModule {

    List<AclModuleLevelDto> list = Lists.newArrayList();

    List<AclDto> aclList = Lists.newArrayList();

    public static AclModuleLevelDto adapt(SysAclModule sysAclModule) {
        AclModuleLevelDto aclModuleLevelDto = new AclModuleLevelDto();
        BeanUtils.copyProperties(sysAclModule, aclModuleLevelDto);
        return aclModuleLevelDto;
    }
}
